package org.gicentre.tweet;

import java.io.ByteArrayOutputStream;
import java.io.OutputStream;


/**Stores a tweet
 * 
 * @author Aidan Slingsby, giCentre
 *
 */
public class Tweet {
	private String hive;
	private String comment;
	private ByteArrayOutputStream imageOutputStream; //For the screenshot that is posted
	private String twitterUserId;


	/**Create a new tweet
	 * 
	 * @param hive HiVE expressions
	 * @param comment A comment
	 * @param imageOutputStream The screenshot as an PNG
	 * @param twitterUserId
	 */
	public Tweet(String hive, String comment,ByteArrayOutputStream imageOutputStream, String twitterUserId){
		this.hive=hive;
		this.comment=comment;
		this.imageOutputStream=imageOutputStream;
		this.twitterUserId=twitterUserId;
	}

	/**Gets the comment
	 * 
	 * @return The comment
	 */
	public String getComment(){
		return comment;
	}

	/**Gets the HiVE expressions (as text)
	 * 
	 * @return HiVE expression as text
	 */
	public String getHive(){
		return hive;
	}

	/**Gets the image as an output stream
	 * 
	 * @return The image as a PNG
	 */
	public ByteArrayOutputStream getOutputStream(){
		return this.imageOutputStream;
	}

	/**Gets the twitter userid
	 * 
	 * @return Twitter user id
	 */
	public String getTwitterUserId(){
		return twitterUserId;
	}
}
